package main

import (
	"github.com/readini"
	"fmt"
)
func main(){
	run := readini.ListenFunc(func(filename  string){
		time1 :=readini.GetFileModTime(filename)
		for {
			time2:=readini.GetFileModTime(filename)
			if time1 != time2{
				fmt.Println("The ini configuration file has been modified")
				break
			}
		}
	})
	config, errs := readini.Watch("config.ini",run)
	if errs != nil{
		panic(errs)
	}
	if config["data"]==""{
	}
}